package com.ynkbny.domain.mongo;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 文章-实体层
 *
 * @author : juzipi123
 * @date : 2023-7-20
 */
@Document(collection = "article") //指定要对应的文档名（表名）
public class Article {

    //文章主键
    @Id
    private String id;

    //文章名
    private String articleName;

    //文章内容
    private String content;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getArticleName() {
        return articleName;
    }

    public void setArticleName(String articleName) {
        this.articleName = articleName;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
